package com.steshov.Everything.entity;

import java.io.Serializable;
import javax.persistence.*;

/**
 * The persistent class for the User database table.
 * 
 */
@Entity
public class User implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	private int id;

	private String login;

	private String name;

	private String password;

	private String mail;

	public User() {
	}

	public User(String login, String name, String password, String mail) {
		this.login = login;
		this.name = name;
		this.password = password;
		this.mail = mail;
	}

	public int getId() {
		return this.id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getLogin() {
		return this.login;
	}

	public void setLogin(String login) {
		this.login = login;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getPassword() {
		return this.password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getMail() {
		return mail;
	}

	public void setMail(String mail) {
		this.mail = mail;
	}

	@Override
	public String toString() {
		return getId() + " " + getLogin() + " " + getPassword() + " "
				+ getName();
	}
}